class DeviceTypeDict {
    dict:any=[
        // {
        //     driverCode: 1,
        //     driverName: "爬模设备"
        // },
        {
            deviceCode: 2,
            deviceName: "强夯"
        },
        {
            deviceCode: 3,
            deviceName: "振动碾"
        },
        {
            deviceCode: 4,
            deviceName: "冲击碾"
        },
        {
            deviceCode: 8,
            deviceName: "多功能摊铺机"
        },
        {
            deviceCode: 10,
            deviceName: "cfg桩机"
        },
        {
            deviceCode: 15,
            deviceName: "旋挖钻机"
        },
        {
            deviceCode: 18,
            deviceName: "洒水车"
        },
        {
            deviceCode: 22,
            deviceName: "水泥搅拌机"
        }
    ]

    getNameByCode(code:any){
        let device = this.dict.find((item:any)=>{
            return item.deviceCode == code
        })
        if(device) return device.deviceName
        return ""
    }
}

export default new DeviceTypeDict()